<?=load_static('js/iCheck/skins/minimal/green.css','js/iCheck/jquery.icheck.js','js/icheck-init.js')?>
<script>$(function(){ product_obj.category_list_init(); })</script>
<div class="page-heading">
    <h3><?=$webmaster_config['title'];?></h3>
    <ul class="breadcrumb">
        <li><a href="<?=base_url()?>"><?=$webmaster_config['title'];?></a></li>
        <li>产品管理系统</li>
        <li class="active"> 产品分类管理 </li>
    </ul>
</div>
<div class="wrapper">
    <div class='row'>
        <div class='col-sm-12'>
            <section class='panel'>
                <header class='panel-heading'>表格列表</header>
                <div class='panel-body'>
                    <div class="btn-group pull-right">
                        <button type="button" class="btn btn-primary btn-sm list-order"><i class="fa fa-bars"></i> 排序</button>
                        <a href="<?=base_url('/product/category_mod/')?>" class="btn btn-primary btn-sm">添加 <i class="fa fa-plus"></i> </a>
                    </div>
                    <table class='table  table-hover general-table'>
                        <thead>
                        <tr>
                            <th width="5%">序号</th>
                            <th width="5%">排序</th>
                            <th>分类名称</th>
                            <th width="13%">分类图片</th>
                            <th width="8%">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach($list as $k=>$v){?>
                        <tr>
                            <td valign="middle"><?=++$k?></td>
                            <td><input type="text" name="my_order[]" list_id="<?=$v['cate_id']?>" value="<?=$v['my_order']?>" class="form-control" maxlength="4" size="3"></td>
                            <td valign="middle"><a href="<?=base_url('/product/category_mod/?cate_id='.$v['cate_id'])?>"><?=$v['pre_chars'].$v['category']?></a></td>
                            <td><a href="<?=$v['picpath_0']?>" target="_blank"><img src="<?=$v['picpath_0']?>" height="30" /></a></td>
                            <td>
                                <a href="<?=base_url('/product/category_mod/?cate_id='.$v['cate_id'])?>" class='btn btn-xs btn-success edit-btn'><i class='fa fa-book'></i></a>
                                <a href="javascript:void(0)" link="<?=base_url('/product/category_del_action/')?>" data-id="<?=$v['cate_id']?>" class='btn btn-xs btn-success del-btn'><i class='fa fa-minus'></i></a>
                            </td>
                        </tr>
                        <?php }?>
                        </tbody>
                    </table>
                    <div class="btn-group pull-right">
                        <button type="button" class="btn btn-primary btn-sm list-order"><i class="fa fa-bars"></i> 排序</button>
                        <a href="<?=base_url('/product/category_mod/')?>" class="btn btn-primary btn-sm">添加 <i class="fa fa-plus"></i> </a>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
